<button id="run-instance-btn">Run Instance</button>

<table id="images-table"></table>
<div id="images-pager"></div>

<div id="run-instance-dialog" title="Run instance" class="dialog">
	<table>
		<tr>
			<th>Image ID</th>
			<td id="run-instance-dialog-id"></td>
		</tr>
		<tr>
			<th>Type</th>
			<td>
			    <select id="type-select"></select>
			</td>
		</tr>
		<tr>
			<th>Keypair</th>
			<td>
			    <select id="keypair-select"></select>
			</td>
		</tr>		
		<tr>
			<th>Number</th>
			<td><input value="1" id="number-input"/></td>
		</tr>		
		<tr>
			<th>Security Group</th>
			<td>
			    <select id="security-group-select"></select>
			</td>
		</tr>		
		<tr><th colspan="2"><button id="run-instance-dialog-submit">Go!</button></th></tr>
	</table>
</div>
<%= javascript_include_tag controller_name %>